module game{
    export class CoreMediator extends BaseController{
        private $panel:CoreView;
        constructor(){
            super();
            //ui
            this.$panel = new CoreView(this,App.UI_Main);
            App.ViewManager.register(ViewConst.Core,this.$panel);


             this.registerFunc(EventConst.Remove_Candy, this.onClickCandy, this);
        }

        private onClickCandy(vo){
            this.$panel.removeCandy(vo);
        }
        
    }
}